import styled from "styled-components";
export const Messagewrap = styled.div`
  margin-top: 50px;
  margin-bottom: 0;
  background-color: var(--bodyback) !important;
  color: var(--fontsize) !important;
  min-height: 1000px;

  & > .content {
    width: 60%;
    margin: 0 auto;
    & > .bt {
      width: 100%;
      position: relative;
      margin-bottom: 20px;
      & > span {
        position: absolute;
        padding: 10px;
      }
      & > span:nth-child(2) {
        right: 50px;
        color: blue;
        cursor: pointer;
      }
      & > span:last-child {
        color: #cfcfcf;
        right: 10px;
        cursor: not-allowed;
      }
      & > .active {
        color: #fdb532 !important;
        cursor: pointer !important;
      }
    }
    & > .maincontent {
      list-style: none;
      padding: 10px;
      background-color: var(--circlemainback);
      border-radius: 10px;
      margin-top: 40px;
      img {
        display: block;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        cursor: pointer;
      }
      & > li {
        position: relative;
        padding: 10px 30px;
        animation: move 0.4s ease-in;
        & > .main {
          display: flex;
          & > .main {
            margin-left: 15px;
            & > .username {
              /* color: rgba(0, 0, 0, 0.6); */
            }
            & > .time {
              /* color: rgba(0, 0, 0, 0.6); */
              font-size: 12px;
              & > .iconfont {
                margin-left: 15px;
                margin-right: 10px;
                cursor: pointer;
              }
            }
          }
        }
        /* 回复评论的评论 */
        & > ul {
          padding-left: 40px;
          margin-top: 20px;
          list-style: none;
          & > li {
            display: flex;
            position: relative;
            padding: 10px 0;
            & > .main {
              margin-left: 15px;
              & > .username {
              }
              & > .time {
                font-size: 12px;
                & > .iconfont {
                  margin-left: 15px;
                  margin-right: 10px;
                  cursor: pointer;
                }
              }
            }
            &::after {
              content: "";
              display: block;
              position: absolute;
              right: 0;
              bottom: 0;
              height: 1px;
              background-color: #f4f5f6;
              width: calc(100% - 80px);
            }
          }
        }
        & > .expand {
          margin-left: 60px;
          padding: 5px;
          border-radius: 10px;
          cursor: pointer;
          font-size: 12px;
          &:hover {
            background-color: #f4f5f6;
          }
        }
        &::after {
          content: "";
          display: block;
          position: absolute;
          right: 0;
          bottom: 0;
          height: 1px;
          background-color: #f4f5f6;
          width: calc(100% - 60px);
        }
      }
    }
    //下拉选择
    .dropdown {
      position: absolute;
      right: 20px;
    }
  }
  .iconfontactive {
    color: red;
  }
  @keyframes move {
    from {
      transform-origin: 0 50%;
      transform: scale(0.3);
      opacity: 0;
    }
    to {
      transform-origin: 0 50%;
      transform: none;
      opacity: 1;
    }
  }
`;
